package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 临床培训基地对象 TRAINING_BASE
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingBase extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 临床培训基地id
     */
    private String baseId;

    /**
     * 临床培训基地编码
     */
    @Excel(name="基地编码" )
    private String baseCode;

    /**
     * 临床培训基地名称
     */
    @Excel(name = "基地名称")
    private String baseName;

    /**
     * 临床培训基地描述
     */
    @Excel(name = "基地描述")
    private String baseDesc;

    /**
     * 是否有效
     */

    private Long isValid;

    /**
     * 创建人
     */

    private Long modifyBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    /**
     * 培训学员ID(查询过滤使用)
     */
    private String cadetId;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("baseId", getBaseId())
                .append("baseCode", getBaseCode())
                .append("baseName", getBaseName())
                .append("baseDesc", getBaseDesc())
                .append("isValid", getIsValid())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .toString();
    }

}
